{extends file="assets::smarty-templates::DetailsView"|ToPath}

{block name="title"}Lineas / Ver{/block}
{block name="page-id"}lineas-view-page{/block}

{block name="custom-actions"}
<li>
    <a href="#confirm-delete-linea" 
       id="delete-linea"
       data-icon="delete" 
       data-role="button"
       data-rel="dialog"
       data-url="{url call='Neptuno::ManejarLineas::remove' id=$linea->getIdLinea()}">
        Eliminar
    </a>
</li>
<li>
    <a href="{url call='Neptuno::ManejarLineas::edit' id=$linea->getIdLinea()}"
       data-role="button">
        Editar
    </a>
</li>
{/block}

{block name="entityDetails"}
<p>
    <span>Abreviatura: </span> {$linea->getAbreviatura()}
</p>

<p>
    <span>Nombre: </span> {$linea->getNombre()}
</p>
{/block}

{block name="subpages"}
<div id="confirm-delete-linea" data-role="subpage" class="common-dialog">
    <div data-role="header">
        <h2>Borrar Linea</h2>
    </div>
    <div data-role="content">
        <p>¿Seguro que desea eliminar esta linea?</p>
        <a href="#"
           data-rel="back"
           data-role="button">Cancelar</a>
        <a href="#"
           id="dialog-confirm"
           data-role="button"
           data-theme="b"
           data-icon="delete">Borrar</a>
    </div>
</div>
{/block}